package org.rcloud.io.mapper;

import org.apache.ibatis.annotations.Param;
import org.rcloud.io.model.Homestay;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HomestayMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Homestay record);

    int insertSelective(Homestay record);

    Homestay selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Homestay record);

    int updateByPrimaryKey(Homestay record);

    List<Homestay> selectAll();

    Homestay selectByEid(String eid);

    int updateByTitle(@Param("inf02")String nameTitle, @Param("inf01")String INF01);
}